package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.LoosechangeMapper;
import com.ruoyi.system.domain.Loosechange;
import com.ruoyi.system.service.ILoosechangeService;

/**
 * 零钱Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-04
 */
@Service
public class LoosechangeServiceImpl implements ILoosechangeService 
{
    @Autowired
    private LoosechangeMapper loosechangeMapper;

    /**
     * 查询零钱
     * 
     * @param id 零钱主键
     * @return 零钱
     */
    @Override
    public Loosechange selectLoosechangeById(Long id)
    {
        return loosechangeMapper.selectLoosechangeById(id);
    }

    /**
     * 查询零钱列表
     * 
     * @param loosechange 零钱
     * @return 零钱
     */
    @Override
    public List<Loosechange> selectLoosechangeList(Loosechange loosechange)
    {
        return loosechangeMapper.selectLoosechangeList(loosechange);
    }

    /**
     * 新增零钱
     * 
     * @param loosechange 零钱
     * @return 结果
     */
    @Override
    public int insertLoosechange(Loosechange loosechange)
    {
        return loosechangeMapper.insertLoosechange(loosechange);
    }

    /**
     * 修改零钱
     * 
     * @param loosechange 零钱
     * @return 结果
     */
    @Override
    public int updateLoosechange(Loosechange loosechange)
    {
        return loosechangeMapper.updateLoosechange(loosechange);
    }

    /**
     * 批量删除零钱
     * 
     * @param ids 需要删除的零钱主键
     * @return 结果
     */
    @Override
    public int deleteLoosechangeByIds(Long[] ids)
    {
        return loosechangeMapper.deleteLoosechangeByIds(ids);
    }

    /**
     * 删除零钱信息
     * 
     * @param id 零钱主键
     * @return 结果
     */
    @Override
    public int deleteLoosechangeById(Long id)
    {
        return loosechangeMapper.deleteLoosechangeById(id);
    }
}
